export default {
  url: "/do/select/company",
  conditionLimit:null,
  selectable: false,
  showIndex: false,
  compact: 220,
  path: 'system/company',
  title: "公司管理",
  entitys: [{"name":"id","label":"编号","type":"search"},{"name":"creator","label":"创建人","type":"user"},{"name":"createGmt","label":"创建时间","type":"date"},{"name":"updateGmt","label":"更新时间","type":"date"},{"name":"title","label":"公司名称"},{"name":"status","label":"是否正常","type":"switch"},{"name":"configs","label":"配置","type":"inputTag"},{"name":"expired","label":"过期时间","type":"date"},{"name":"permanentCode","label":"企业永久授权码"},{"name":"corpid","label":"企业微信id"}],
  columns: ["id","title","expired","status","createGmt"],
  condition: [],
  slots: {
      header$() {
      return (
        <>
        <z-action p='1zz7w32v' label='添加公司' mode='dialog' fields={["title"]} type='primary' url='/api/company/addCompany' title='添加公司' />
        </>
      )
    },
    action$({ row }) {
      return (
        <>
          <z-action p='cq7pconz' label='运营人员' data={row} mode='drawer' href='/system/manager' link map={{"companyId":"id"}} />
<z-action p='khd6j80e' label='编辑' mode='dialog' fields={["title","expired"]} link data={row} url='/do/patch/company' />
<z-action p='ge66i02o' label='删除' mode='confirm' link data={row} url='/do/delete/company' />
        </>
      )
    }
  }
}
  